package com.atguigu.cloud.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ViGrayThorn
 * @since 1.0.0
 * date 2025-09-02 09:15:00
 */
@Configuration
public class Swagger3Config {
	@Bean
	public GroupedOpenApi OrderApi() {
		return GroupedOpenApi.builder()
				.group("订单微服务模块")
				.pathsToMatch("/consumer/**")
				.build();
	}

	@Bean
	public OpenAPI docsOpenApi() {
		return new OpenAPI()
				.info(new Info().title("cloud2024 - 订单微服务")
						.description("订单微服务API文档")
						.version("v1.0"));
	}
}